﻿using System.Web.Mvc;
using Freedom.Framework.Mvc.Filter;
using Freedom.Services.Interface;

namespace Freedom.JqxGrid.Controllers
{
    [LogActionFilter]
    public class HomeController : Controller
    {
        private readonly IProductService _productService;

       
        public HomeController(IProductService productService)
        {
            _productService = productService;
        }

        public ActionResult Index()
        {
            var allproducts = _productService.GetAllProducts();
            var test = _productService.GetPageProducts(1, 5);
            return View(allproducts);
        }
    }
}
